package com.microstation.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping(value = "/")
public class IndexController {

    @GetMapping(value = "/adm")
    public ModelAndView index(){
        return new ModelAndView("redirect:adm/login.html");
    }

    @GetMapping(value = "/")
    public ModelAndView appIndex(){
        return new ModelAndView("redirect:index/login.html");
    }
}
